/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package ecodex.restapi.models;

import java.util.Date;

/**
 *
 * @author jjcarbajal
 */

public class Token  {
    private String access_token;
    private String token_type;
    private int expires_in;
    private Date service_datetime;    

    /**
     * @return the access_token
     */
    public String getAccess_token() {
        return access_token;
    }

    /**
     * @param access_token the access_token to set
     */
    public void setAccess_token(String access_token) {
        this.access_token = access_token;
    }

    /**
     * @return the token_type
     */
    public String getToken_type() {
        return token_type;
    }

    /**
     * @param token_type the token_type to set
     */
    public void setToken_type(String token_type) {
        this.token_type = token_type;
    }

    /**
     * @return the expires_in
     */
    public int getExpires_in() {
        return expires_in;
    }

    /**
     * @param expires_in the expires_in to set
     */
    public void setExpires_in(int expires_in) {
        this.expires_in = expires_in;
    }

    /**
     * @return the service_datetime
     */
    public Date getService_datetime() {
        return service_datetime;
    }

    /**
     * @param service_datetime the service_datetime to set
     */
    public void setService_datetime(Date service_datetime) {
        this.service_datetime = service_datetime;
    }
    
    @Override
    public String toString() {
        return String.format("access_token: %s, token_type: %s, expires_in: %s, service_datetime: %s", getAccess_token(), getToken_type(), getExpires_in(), getService_datetime());
    }    
}
